package com.example.springdemo.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Repository;

/**
 * @ClassName JsonData
 * @Description TODO
 * @Author MaChao
 * @Date 2022/2/22 14:59
 * @Version 1.0
 **/
@Repository
@PropertySource(value = "classpath:my.properties")
@ConfigurationProperties(prefix = "jsondata")
public class JsonData {

    private String content;

    public JsonData() {
    }

    public JsonData(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
